package com.jia.lidao.others.enity;

import java.io.Serializable;
import java.util.List;

public class Address {

    /**
     * err_code : 0
     * err_msg : OK
     * timestamp : 1512008138
     * addresses : {"page":1,"data":[{"address_id":12,"consignee":"黄庆庆4","phone":"15050856389","province_id":11,"city_id":73296,"county_id":89082,"street":"金尚路","is_default":0,"province_name":"江苏省","city_name":"苏州市","county_name":"吴江区"},{"address_id":11,"consignee":"黄庆庆3","phone":"15050856389","province_id":11,"city_id":73296,"county_id":89082,"street":"金尚路","is_default":0,"province_name":"江苏省","city_name":"苏州市","county_name":"吴江区"},{"address_id":10,"consignee":"黄庆庆2","phone":"15050856389","province_id":11,"city_id":73296,"county_id":89082,"street":"金尚路","is_default":0,"province_name":"江苏省","city_name":"苏州市","county_name":"吴江区"},{"address_id":9,"consignee":"黄庆庆1","phone":"15050856389","province_id":11,"city_id":73296,"county_id":89082,"street":"金尚路","is_default":0,"province_name":"江苏省","city_name":"苏州市","county_name":"吴江区"},{"address_id":8,"consignee":"黄庆庆","phone":"15050856389","province_id":11,"city_id":73296,"county_id":89082,"street":"金尚路","is_default":0,"province_name":"江苏省","city_name":"苏州市","county_name":"吴江区"},{"address_id":7,"consignee":"黄庆庆","phone":"15050856389","province_id":11,"city_id":73296,"county_id":89082,"street":"金尚路","is_default":0,"province_name":"江苏省","city_name":"苏州市","county_name":"吴江区"}],"page_size":10,"total_records":6,"total_pages":1}
     */

    private int err_code;
    private String err_msg;
    private int timestamp;
    private AddressesBean addresses;

    public int getErr_code() {
        return err_code;
    }

    public void setErr_code(int err_code) {
        this.err_code = err_code;
    }

    public String getErr_msg() {
        return err_msg;
    }

    public void setErr_msg(String err_msg) {
        this.err_msg = err_msg;
    }

    public int getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(int timestamp) {
        this.timestamp = timestamp;
    }

    public AddressesBean getAddresses() {
        return addresses;
    }

    public void setAddresses(AddressesBean addresses) {
        this.addresses = addresses;
    }

    public static class AddressesBean {
        /**
         * page : 1
         * data : [{"address_id":12,"consignee":"黄庆庆4","phone":"15050856389","province_id":11,"city_id":73296,"county_id":89082,"street":"金尚路","is_default":0,"province_name":"江苏省","city_name":"苏州市","county_name":"吴江区"},{"address_id":11,"consignee":"黄庆庆3","phone":"15050856389","province_id":11,"city_id":73296,"county_id":89082,"street":"金尚路","is_default":0,"province_name":"江苏省","city_name":"苏州市","county_name":"吴江区"},{"address_id":10,"consignee":"黄庆庆2","phone":"15050856389","province_id":11,"city_id":73296,"county_id":89082,"street":"金尚路","is_default":0,"province_name":"江苏省","city_name":"苏州市","county_name":"吴江区"},{"address_id":9,"consignee":"黄庆庆1","phone":"15050856389","province_id":11,"city_id":73296,"county_id":89082,"street":"金尚路","is_default":0,"province_name":"江苏省","city_name":"苏州市","county_name":"吴江区"},{"address_id":8,"consignee":"黄庆庆","phone":"15050856389","province_id":11,"city_id":73296,"county_id":89082,"street":"金尚路","is_default":0,"province_name":"江苏省","city_name":"苏州市","county_name":"吴江区"},{"address_id":7,"consignee":"黄庆庆","phone":"15050856389","province_id":11,"city_id":73296,"county_id":89082,"street":"金尚路","is_default":0,"province_name":"江苏省","city_name":"苏州市","county_name":"吴江区"}]
         * page_size : 10
         * total_records : 6
         * total_pages : 1
         */

        private int page;
        private int page_size;
        private int total_records;
        private int total_pages;
        private List<DataBean> data;

        public int getPage() {
            return page;
        }

        public void setPage(int page) {
            this.page = page;
        }

        public int getPage_size() {
            return page_size;
        }

        public void setPage_size(int page_size) {
            this.page_size = page_size;
        }

        public int getTotal_records() {
            return total_records;
        }

        public void setTotal_records(int total_records) {
            this.total_records = total_records;
        }

        public int getTotal_pages() {
            return total_pages;
        }

        public void setTotal_pages(int total_pages) {
            this.total_pages = total_pages;
        }

        public List<DataBean> getData() {
            return data;
        }

        public void setData(List<DataBean> data) {
            this.data = data;
        }

        public static class DataBean implements Serializable {
            /**
             * address_id : 12
             * consignee : 黄庆庆4
             * phone : 15050856389
             * province_id : 11
             * city_id : 73296
             * county_id : 89082
             * street : 金尚路
             * is_default : 0
             * province_name : 江苏省
             * city_name : 苏州市
             * county_name : 吴江区
             */

            private int address_id;
            private String consignee;
            private String phone;
            private int province_id;
            private int city_id;
            private int county_id;
            private String street;
            private int is_default;
            private String province_name;
            private String city_name;
            private String county_name;

            public int getAddress_id() {
                return address_id;
            }

            public void setAddress_id(int address_id) {
                this.address_id = address_id;
            }

            public String getConsignee() {
                return consignee;
            }

            public void setConsignee(String consignee) {
                this.consignee = consignee;
            }

            public String getPhone() {
                return phone;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            public int getProvince_id() {
                return province_id;
            }

            public void setProvince_id(int province_id) {
                this.province_id = province_id;
            }

            public int getCity_id() {
                return city_id;
            }

            public void setCity_id(int city_id) {
                this.city_id = city_id;
            }

            public int getCounty_id() {
                return county_id;
            }

            public void setCounty_id(int county_id) {
                this.county_id = county_id;
            }

            public String getStreet() {
                return street;
            }

            public void setStreet(String street) {
                this.street = street;
            }

            public int getIs_default() {
                return is_default;
            }

            public void setIs_default(int is_default) {
                this.is_default = is_default;
            }

            public String getProvince_name() {
                return province_name;
            }

            public void setProvince_name(String province_name) {
                this.province_name = province_name;
            }

            public String getCity_name() {
                return city_name;
            }

            public void setCity_name(String city_name) {
                this.city_name = city_name;
            }

            public String getCounty_name() {
                return county_name;
            }

            public void setCounty_name(String county_name) {
                this.county_name = county_name;
            }
        }
    }
}
